package com.ywq.dao;

import com.ywq.pojo.SSM_Student;

import java.util.List;

public interface StudentDao {
    //增
    int saveStudent(SSM_Student student);
    //删
    boolean deleteStudent(int id);

    //改
    boolean updateStudent(SSM_Student stu);

    //查
    SSM_Student findStudentById(int id);
    //按性别查询
    List<SSM_Student> findStudentBySex(String sex);

    List<SSM_Student> findAll();
}
